<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <input type="checkbox"></input>
</body>
</html>
<script>
    let ipt=document.querySelector('input');
    console.log(ipt.checked);
    ipt.checked=false;
    ipt.id='test';
    ipt.className='test2'; 
    </script>